
import { impData, hotList, urgentMatter } from './data/data';

export default {
  // 处置事件
  'get|/mock/cacp/czsj': {
    'list|2': [
      {
        id: '@id',
        title: '@csentence(16, 36)',
        tip: '普通',
        sendNum: '@integer(1, 99)',
        replyNum: '@integer(1, 99)',
        no: '@zip(10)',
        type: 'primary',
        desc: '@csentence(80, 160)'
      },
      {
        id: '@id',
        title: '@csentence(16, 36)',
        tip: '重点',
        sendNum: '@integer(1, 99)',
        replyNum: '@integer(1, 99)',
        no: '@zip(10)',
        type: 'danger',
        desc: '@csentence(80, 160)'
      }
    ]
  },
  // 最新舆情事件
  'get|/mock/cacp/yqList': {
    'list|10': [
      {
        id: '@id',
        title: '@csentence(10, 20)',
        tip: '普通',
        time: '@datetime("yyyy/MM/dd HH:mm:ss")',
        source: '微博',
        account: '宁波日报'
      }
    ]
  },
  // 网络安全通报
  'get|/mock/cacp/safeIntnet': {
    'list|4': [
      {
        id: '@id',
        title: '@csentence(10, 20)',
        time: '@datetime("MM/dd HH:mm")',
        simpleTagName: '市级',
        simpleTagColor: 'success'
      },
      {
        id: '@id',
        title: '@csentence(10, 20)',
        time: '@datetime("MM/dd HH:mm")',
        simpleTagName: '省级',
        simpleTagColor: 'primary'
      },
      {
        id: '@id',
        title: '@csentence(10, 20)',
        time: '@datetime("MM/dd HH:mm")',
        simpleTagName: '中央',
        simpleTagColor: 'danger'
      },
      {
        id: '@id',
        title: '@csentence(10, 20)',
        time: '@datetime("MM/dd HH:mm")',
        simpleTagName: '中央',
        simpleTagColor: 'danger'
      }
    ]
  },
  // 平台热搜榜
  'get|/mock/cacp/hotList': {
    'list': hotList()
  },
  // 重点账号
  'get|/mock/cacp/impAccount': {
    'list': impData()
  },
  // 重点文章
  'get|/mock/cacp/impArticle': {
    'list|4': [
      {
        id: '@id',
        title: '@csentence(30, 50)',
        time: '@datetime("yyyy/MM HH:mm")',
        source: '微博',
        read: '@integer(1, 99)',
        like: '@integer(1, 99)',
        comment: '@integer(1, 99)',
        reply: '@integer(1, 99)'
      }
    ]
  },
  // 东海前哨数据
  'get|/mock/cacp/dhData': {
    'list|10': [
      {
        id: '@id',
        title: '@csentence(10, 30)',
        time: '@datetime("yyyy/MM HH:mm")',
        address: '@county',
        content: '@csentence(10, 30)',
        showHome: true,
        top: true,
        xyzs: '@integer(1, 99) 分钟',
        xypf: '@integer(1, 99) 分',
        hfzs: '@integer(1, 99) 小时',
        hfpf: '@integer(1, 99) 分'
      }
    ]
  },
  // 当前发生的应急事件
  'get|/mock/cacp/urgentMatter': {
    'list': urgentMatter()
  },
  // 评论
  'get|/mock/cacp/comment': {
    'list|4': [
      {
        id: '@id',
        title: '用户名：@cname',
        time: '@datetime("yyyy/MM/dd HH:mm:ss")',
        desc: '@csentence(30, 50)'
      }
    ]
  },
  // ** 区县市网信办 **
  // 区县市网信办列表
  'get|/mock/cacp/cooperation': {
    'list|10': [
      {
        id: '@id',
        title: '@cname',
        password: '@natural',
        time: '@datetime("yyyy-MM-dd HH:mm:ss")',
        area: '@county()',
        dept: '海曙区网信办',
        status: true,
        desc: '@csentence(30, 50)'
      }
    ]
  },

  // 批量处理 列表
  'get|/mock/cacp/czsjList': {
    'list|6': [
      {
        id: '@id',
        title: '@csentence(20, 50)',
        link: 'https://www.baidu.com',
        hotNum: '@integer(100, 9000)',
        source: '宁波日报',
        img: 'http://www.hugoooo.com/img/img.png'
      }
    ]
  },

  // 视频截取 列表
  'get|/mock/cacp/videoList': {
    'list|10': [
      {
        id: '@id',
        title: '@csentence(10, 20)',
        link: 'https://www.baidu.com',
        hotNum: '@integer(100, 9000)',
        source: '宁波日报',
        time: '@datetime("yyyy-MM-dd")',
        img: 'http://www.hugoooo.com/img/img.png'
      }
    ]
  },

  // 处置通讯录
  'get|/mock/cacp/addressList': {
    'list|4': [
      {
        id: '@id',
        name: '@cname',
        dept: '财务部',
        componey: '教育局',
        work: '副主任',
        mobile: '18055555555',
        email: '@email',
        avatar: '@image("36x36", "#FF6600", "")',
         time: '@datetime("yyyy-MM-dd HH:mm:ss")'
      }
    ]
  },

  // 文章监控
  'get|/mock/cacp/articleList': {
    'list|4': [
      {
        id: '@id',
        title: '@csentence(20, 50)',
        link: 'https://www.baidu.com',
        time: '@datetime("yyyy-MM-dd")',
        readNo: '@integer(100, 9000)',
        clickNo: '@integer(100, 9000)',
        relay: '@integer(100, 9000)',
        recomment: '@integer(100, 9000)',
        statusText: '正常',
        deleteText: '是',
        deleteStatus: 1,
        status: 1,
        source: '@csentence(2, 6)'
      }
    ]
  },

  // 第三方公司
  'get|/mock/cacp/componeyList': {
    'list|8': [
      {
        id: '@id',
        title: '@csentence(5, 16)',
        acceptNum: '@integer(100, 9000)',
        uploadNum: '@integer(100, 9000)',
        averageTime: '@integer(1, 10) 小时',
        statusText: '优秀',
        status: 1,
        recoment: '@csentence(5, 10)',
        tie: '@csentence(5, 10)'
      }
    ]
  },

  // 分享链接管理
  'get|/mock/cacp/shareLink': {
    'list|6': [
      {
        id: '@id',
        title: '@csentence(5, 16)',
        name: '@cname',
        time: '@datetime("yyyy-MM-dd")'
      }
    ]
  },

  // 数据审核
  'get|/mock/cacp/verifyData': {
    'list|6': [
      {
        id: '@id',
        title: '@csentence(5, 16)',
        componey: '@csentence(5, 16)',
        content: '文章100篇、评论200条',
        name: '@cname',
        time: '@datetime("yyyy-MM-dd")'
      }
    ]
  },

  // 网上舆情信息表历史记录
  'get|/mock/cacp/semHistory': {
    'list|6': [
      {
        id: '@id',
        title: '@csentence(5, 16)',
        source: '宁波日报',
        statusText: '待办理',
        status: 1,
        result: '@csentence(5, 16)',
        unit: '宁波市委网信办',
        time: '@datetime("yyyy-MM-dd HH:mm:ss")'
      }
    ]
  },

  // 每日值班舆情及处置情况一览表
  'get|/mock/cacp/semList': {
    'list|6': [
      {
        id: '@id',
        title: '@csentence(5, 16)',
        link: 'https://www.baidu.com',
        source: '宁波日报',
        type: '涉环保类',
        from: '@county',
        address: '@county',
        time: '@datetime("yyyy-MM-dd")'
      }
    ]
  }
};
